const mongoose = require('../connect');
// 创建文档结构
const newSchema = new mongoose.Schema({
    title:{
        type:String,
        required:true
    },
    content:{
        type:String,
        required:true
    }
})
// 创建文档对象
const newModel = mongoose.model('news',newSchema);
module.exports = newModel;